package com.example.demo.itemReader.itemReadeFromDatabase;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;
@Component("databaseJDBCWriter")
public class databaseWriter implements ItemWriter<User> {

    @Override
    public void write(List<? extends User> list) throws Exception {
        for(User user:list)
            System.out.println(user.toString());
    }
}
